//
//  UserCollectionViewCell.m
//  news
//
//  Created by dllo on 16/3/15.
//  Copyright © 2016年 imacbookair. All rights reserved.
//

#import "UserCollectionViewCell.h"

@implementation UserCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.tu = [[UIImageView alloc]init];
//        _tu.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_tu];
        self.lable = [[UILabel alloc]init];
        _lable.font = [UIFont systemFontOfSize:12];
        _lable.textAlignment = NSTextAlignmentCenter;
        //        _lable.backgroundColor = [UIColor magentaColor];
        [self.contentView addSubview:_lable];
    }
    
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    _tu.frame = CGRectMake(0, 0, 25 , 25 );
    _tu.center = CGPointMake(self.contentView.center.x, 20);
    _lable.frame = CGRectMake(0, 0, 40 , 20 );
    _lable.center = CGPointMake(self.contentView.center.x, 50  );
}








@end
